package cn.bonoon.controllers.faq;

import java.util.Date;

import cn.bonoon.kernel.annotations.condition.ConditionField;
import cn.bonoon.kernel.annotations.condition.ConditionOpt;
import cn.bonoon.kernel.query.PageCondition;
import cn.bonoon.kernel.util.Opt;
import cn.bonoon.kernel.web.annotations.condition.ConditionContent;

public class FaqCatalogCondition extends PageCondition implements FaqCatalogDefine {

	private static final long serialVersionUID = -6836416473999744373L;

	@ConditionContent(ordinal = 1)
	private Boolean searchPlatform;

	@ConditionContent(ordinal = 0)
	private String searchName;

	@ConditionContent(ordinal = 2)
	private Boolean searchDisable;

	@ConditionContent(ordinal = 10)
	private Integer searchLevel;

	@ConditionField(value = "createAt")
	@ConditionOpt(Opt.GE)
	@ConditionContent(value = "时间  从", ordinal = 11)
	private Date searchStartAt;

	@ConditionField(value = "createAt")
	@ConditionOpt(Opt.LE)
	@ConditionContent(value = "到", ordinal = 12)
	private Date searchEndAt;

	public Boolean getSearchPlatform() {
		return searchPlatform;
	}

	public void setSearchPlatform(Boolean searchPlatform) {
		this.searchPlatform = searchPlatform;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public Boolean getSearchDisable() {
		return searchDisable;
	}

	public void setSearchDisable(Boolean searchDisable) {
		this.searchDisable = searchDisable;
	}

	public Integer getSearchLevel() {
		return searchLevel;
	}

	public void setSearchLevel(Integer searchLevel) {
		this.searchLevel = searchLevel;
	}

	public Date getSearchStartAt() {
		return searchStartAt;
	}

	public void setSearchStartAt(Date searchStartAt) {
		this.searchStartAt = searchStartAt;
	}

	public Date getSearchEndAt() {
		return searchEndAt;
	}

	public void setSearchEndAt(Date searchEndAt) {
		this.searchEndAt = searchEndAt;
	}

}
